// JavaScript Document

$('.links').after('<a href="#" class="white-panel" id="message"><span style="font-size:13px;font-family:arial;" id="footer-warning-message"></span></a>');
	
	$('#text').html('<div id="warning"><div id="contButtons" style="border:1px solid #ccc;padding:16px;margin-bottom:16px;background:#efefef;display:none" class="ui-corner-all"><p>"Unfortuantely, based on iDecision its appears you  are not currently eligible. Please reapply in 3 months time. Thank you."</p></div></div>').hide();
	
	$('#text').dialog({width:580,title:'Lets get started',autoOpen:false,modal:true}); 
	
	
	$('#contButtons').on('click','a',function(){
		$('#text').dialog('close'); 
	});
	
	$('#message').on('click',function(){ 
	
		$('#text').dialog('open'); 
		$('#contButtons').hide();
	 
		return false; 
	}); 